home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 13
/
Aminet 13 - August 1996.iso
/
Aminet
/
mus
/
midi
/
SoundPalette.lha
/
SoundPaletteInstall
/
Install_SoundPalette
next >
Wrap
Text File
|
1996-05-26
|
4KB
|
135 lines
;-------------------------------------------------
; HD Installation script for Musicline Editor 1.14
; Copyright © 1995 by Musicline.
; Written by Conny Cyreus.
;-------------------------------------------------
;$VER: Musicline Editor HDInstall 1.14 ()
; Check kickversion.
;-------------------
(if (< (/ (getversion) 65536) 37)
(abort "SoundPalette will only run under Kickstart 2.04 or above!")
)
; Select destination drawer
;--------------------------
(welcome)
(set @default-dest (askdir (prompt "Please select a drive or drawer where\nSoundPalette should be installed.\nA drawer will be created there.")
(default @default-dest) (help "In the path you choose, a directory for SoundPalette will be created.")))
(set @default-dest (tackon @default-dest "SoundPalette"))
; Copy SoundPalette files
;------------------------
(working "Checking for main files")
(copyfiles (prompt "Install SoundPalette V1.0. main files")
(source "Main")
(dest @default-dest)
(pattern "#?")
(files)
(infos)
(optional fail)
(confirm)
(help @copyfiles-help)
)
(makedir (tackon @default-dest "Images"))
(copyfiles (prompt "Install SoundPalette images.")
(source "Images")
(dest (tackon @default-dest "Images"))
(all)
(optional fail force)
(confirm)
(help "These images are used by SoundPalettes requesters. They will be placed in their own directory inside the SoundPalette directory.")
)
; Copy images icon
;--------------------
(set Destination @default-dest)
(copyfiles (source "Icons") (dest Destination) (pattern "Images.info") (files) (optional nofail) (help @copyfiles-help) )
; Copy directory icon
;--------------------
(set Destination (substr @default-dest 0 (- (strlen @default-dest) 12)))
(set SoundPalette (substr @default-dest (- (strlen @default-dest) 12) 12))
(if (= SoundPalette "SoundPalette")
(copyfiles (source "Icons") (dest Destination) (pattern "SoundPalette.info") (files) (optional nofail) (help @copyfiles-help) )
)
; Copy Audition files
;--------------------
(working "Checking for audition files.")
(makedir (tackon @default-dest "Tunes"))
(if (= (exists "Tunes" (noreq)) 2)
(copyfiles (prompt "Install audition files.")
(source "Tunes")
(dest (tackon @default-dest "Tunes"))
(all)
(optional fail force)
(confirm)
(help @copyfiles-help)
)
)
; Copy tunes icon
;--------------------
(set Destination @default-dest)
(copyfiles (source "Icons") (dest Destination) (pattern "Tunes.info") (files) (optional nofail) (help @copyfiles-help) )
; Copy presets.
;--------------
(working "Installing presets.")
(makedir (tackon @default-dest "Presets"))
(if (= (exists "Presets" (noreq)) 2)
(copyfiles (prompt "Installing presets.")
(source "Presets")
(dest (tackon @default-dest "Presets"))
(all)
(confirm)
(help "These are some 05R/W presets that form part of the database which comes with this package. If you choose not to install them, you will not be able to use the pre-made database.")
)
)
; Copy images icon
;--------------------
(set Destination @default-dest)
(copyfiles (source "Icons") (dest Destination) (pattern "Presets.info") (files) (optional nofail) (help @copyfiles-help) )
; Copy banks
;-----------
(working "Searching for 05R/W banks.")
(makedir (tackon @default-dest "Banks"))
(if (= (exists "Banks" (noreq)) 2)
(copyfiles (prompt "Installing the banks.")
(source "Banks")
(dest (tackon @default-dest "Banks"))
(all)
(help "These are some 05R/W program banks for you to play around with. Each contains a full set of 100 A-Bank sounds.")
(confirm)
)
)
; Copy images icon
;--------------------
(set Destination @default-dest)
(copyfiles (source "Icons") (dest Destination) (pattern "Banks.info") (files) (optional nofail) (help @copyfiles-help) )
; Copy configuration.
;--------------------
(working "Copying configuration to S:")
(copyfiles (prompt "Copying default configuration.")
(source "Config")
(dest "S:")
(all)
(help @copyfiles-help)
)